<style>
    #cell-2 { width: 430px; }
    #cell-2 dt { width: 140px; }
    #cell-2 dd { width: 250px; }
    #cell-3 { width: 350px;}
    #cell-3 dt { width: 60px; }
    #cell-3 dd { width: 250px; }
    #cell-4 { width: 400px; }
    #cell-4 dt { width: 110px; }
    #cell-4 dd { width: 250px; }
</style> 

<div class="vheader">
    <h1><?php echo $this->Roles->d->Role ?></h1>
    <p><?php echo $this->translate("Role") ?>
</div>

<div class="vcontent">

<div id="cell-2">
    <dl>
        <dt><?php echo $this->translate("Role") ?></dt>
        <dd><?php echo $this->Roles->d->Role ?></dd>
        <dt><?php echo $this->translate("Id") ?></dt>
        <dd><?php echo $this->Roles->d->RoleId ?></dd>
        <dt><?php echo $this->translate("Users") ?></dt>
        <dd>
            <div style='max-height:155px; overflow:auto;'>
                <?php if($this->Roles->r->users->count() == 0) echo '-' ?>
                <?php foreach($this->Roles->r->users as $user) echo $user->FullName .'<br />' ?>
            </div>
        </dd>
        <dt><?php echo $this->translate("Alerts") ?></dt>
        <dd>
            <div style='max-height:155px; overflow:auto;'>
                <?php if($this->Roles->r->alerts->count() == 0) echo '-' ?>
                <?php foreach($this->Roles->r->alerts as $alert) echo $alert->Alert .'<br />' ?>
            </div>
        </dd>
        <dt><?php echo $this->translate("Resources") ?></dt>
        <dd>
            <div style='max-height:155px; overflow:auto;'>
                <?php if($this->Roles->r->resources->count() == 0) echo '-' ?>
                <?php foreach($this->Roles->r->resources as $resource) echo $resource->Resource .'<br />' ?>
            </div>
        </dd>
        <dt><?php echo $this->translate("Comments") ?></dt>
        <dd><?php echo $this->replaceEmpty($this->Roles->d->Comments,'-') ?></dd>
    </dl>
</div>

</div>

<div class="vfooter">
    <div class="menu">
        <?php echo $this->link('/admin/role/add', array('id'=>$this->Roles->d->RoleId),$this->translate("Edit role")) ?>                 
    </div>
</div>